<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 18:06:20
 * @LastEditors: upholdjx 1373577124@qq.com
 * @LastEditTime: 2023-07-29 15:57:23
-->
<!-- 老人入院管理 -->
<template>
    <aplid-base-crud ref="crud" v-bind="{ ...theConfig, ...$attrs }" :paramsObj="{code: 3022,isWithAuth:props.isWithAuth,idCard:idCard}">
    </aplid-base-crud>
  </template>
  
  <script setup lang="ts">
  import {ref} from 'vue'
  import { baseConfig } from './config'
  import { editConfig } from '@/views/datacenter/comprehensiveQueries/utils/index'
  type Props = {
    isWithAuth?:any,
    isComprehensiveQueries?:boolean
    idCard?:string
  }
  let props = withDefaults(defineProps<Props>(),{
    isWithAuth:undefined,
    isComprehensiveQueries:false,
    idCard:''
  })
  let theConfig :any= ref({})
  
  if(baseConfig){
    let defaultConfig = JSON.parse(JSON.stringify(baseConfig))
    if(props.isComprehensiveQueries){
      theConfig.value = editConfig(defaultConfig)
    }else{
      theConfig.value = baseConfig
    }
    
  }
  </script>
  
  <style scoped></style>